package cn.lyjuan.payment.third.base.pay.vo.res;

/**
 * 交易响应
 *
 * @param <D>
 */
public class PayRes<D> extends BaseRes {
    /**
     * PayRes
     * 流水号
     */
    protected String localNo;

    /**
     * 每个支付平台独立的交易信息
     */
    protected D params;

    public PayRes() {
        super();
    }

    public PayRes(boolean status, String msg) {
        super(status, msg);
    }

    public PayRes(boolean status, String msg, D params) {
        this.isSucc = status;
        this.msg = msg;
        this.params = params;
    }

    public PayRes(String localNo, D params) {
        this.localNo = localNo;
        this.params = params;
    }

    public String getLocalNo() {
        return localNo;
    }

    public void setLocalNo(String localNo) {
        this.localNo = localNo;
    }

    public D getParams() {
        return params;
    }

    public void setParams(D params) {
        this.params = params;
    }

    @Override
    public String toString() {
        return "PayRes{" +
                "localNo='" + localNo + '\'' +
                ", params=" + params +
                ", isSucc=" + isSucc +
                ", msg='" + msg + '\'' +
                '}';
    }
}
